* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color:lemonchiffon;
    font-family: sans-serif;
}
h1 {
    text-align: center;
    margin: 40px auto 50px;
}
.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px;
    transform: translateX(400%);
    transition: transform 0.5s ease-in-out;
}
.box:nth-of-type(even) {
    transform: translateX(-400%);
}
.box.show {
    transform: translateX(0);
}
.box h2 {
    background-color: steelblue;
    width: 400px;
    height: 200px;
    color: #fff;
    font-size: 50px;
    border-radius: 10px;
    text-align: center;
    line-height: 200px;
}


